package ex2;

import java.math.BigInteger;
import java.util.Scanner;
public class Test7 {
	public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);
		BigInteger sum = new BigInteger("0");
		while (scanner.hasNextLine()) {
			String string = scanner.nextLine();
			if (string.equalsIgnoreCase("e")) {
				break;
			}
			sum = sum.add(new BigInteger(string));
		}
		System.out.println(sum);
		scanner.close();
	}
}